package com.pinkpig.excel.row;


import com.pinkpig.excel.metadata.EmptyMetaData;
import com.pinkpig.excel.row.model.EmptyRowModel;
import com.pinkpig.excel.row.model.RowModel;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.IntStream;

public class EmptyRowModelBuilder implements RowModelBuilder<EmptyMetaData> {

    @Override
    public List<RowModel> build(EmptyMetaData emptyMetaData){
        IntStream is = IntStream.range(0, emptyMetaData.getSize());
        List<RowModel> rows = new ArrayList<>();
        is.forEach(row -> {
            rows.add(new EmptyRowModel());
        });
        return rows;
    }

}
